<?php echo $this->placeholder('container-class')->set('custom');?>
<?php
$boattype = Model_Listing_Boat::getBoatType();
$boatcategory = Model_Listing_Boat::getBoatCategory($this->listing->boattype);
?>
<dl class="detail">
	<dt>Detail:</dt>
	<dd>
	<?php 
	$to_add     = '';
	$to_add1     = '';
	$to_add2     = '';
	if (!empty($this->listing->make)){ ?>
	<a href="<?php echo Ac_Util::getSearchUrl((string)$this->listing->make);?>">
		<?php echo (string)$this->listing->make;?></a><?php
	$to_add = ', '; 
	}
	if (!empty($this->listing->yearmanufactured)){ 
		echo $to_add . (string)$this->listing->yearmanufactured; 
		$to_add1 = ', ';
	}
	if (!empty($this->listing->boattype)){ 
		echo $to_add1 . $boattype[(string)$this->listing->boattype]; 
		$to_add2 = ', ';
	}
	if (!empty($this->listing->boatcategory)){ 
		echo $to_add2 . $boatcategory[(string)$this->listing->boatcategory]; 
	}?>
	</dd>
</dl>
<?php if (!empty($this->listing->enginetype)): ?>
<dl class="detail">
	<dt>Detail:</dt>
	<dd><?php echo (string)$this->listing->enginetype;?></dd>
</dl>
<?php endif; ?>

<?php if (!empty($this->listing->area_l2)):?>
<?php $distric_name = Model_Location::find($this->listing->area_l2)->name;?>
<dl class="detail">
	<dt><?php echo $this->t('Detail')?>:</dt>
	<dd>
		<a href="<?php echo Ac_Util::getCrossLink($this->listing->area_l2, 'area_l2');?>">
			<?php echo $distric_name?>
		</a>
	</dd>
</dl>
<?php endif;?>

<?php if (!empty($this->listing->sold)): ?>
<dl class="price">
	<dt><?php echo $this->t('Price')?>:</dt>
	<dd><?php echo $this->t('Sold');?></dd>
</dl>
<?php elseif (!empty($this->listing->is_free)): ?>
<dl class="price">
	<dt><?php echo $this->t('Price')?>:</dt>
	<dd><?php echo $this->t('Free');?></dd>
</dl>
<?php elseif (!empty($this->listing->is_contact)): ?>
<dl class="price">
	<dt><?php echo $this->t('Price')?>:</dt>
	<dd><?php echo $this->t('Please contact');?></dd>
</dl>
<?php else: ?>
<?php if (!empty($this->listing->price)): ?>
<dl class="price">
	<dt><?php echo $this->t('Price')?>:</dt>
	<dd><?php echo $this->t('HKD __1__', null, number_format($this->listing->price));?></dd>
</dl>
<?php endif; ?>
<?php endif; ?>
